import os
from openai import OpenAI

# client = OpenAI(
#     api_key = "0f56e8eb-8815-482d-8099-c5bef02f129a",
#     base_url = "https://ark.cn-beijing.volces.com/api/v3",
# )
#
#
# completion = client.chat.completions.create(
#     model = "deepseek-r1-250120",  # your model endpoint ID
#     messages = [
#         {"role": "system", "content": "你是人工智能助手"},
#         {"role": "user", "content": "常见的十字花科植物有哪些？"},
#     ],
# )
# print(completion.choices[0].message.content)


from openai import OpenAI

client = OpenAI(
    # defaults to os.environ.get("OPENAI_API_KEY")
    api_key="sk-hVDDL0mTxdkLNHhCISCVOJZQ4EI46rvtYLR5EFUx8FQVAQza",
    base_url="https://api.chatanywhere.tech/v1"
    # base_url="https://api.chatanywhere.org/v1"
)

completion = client.chat.completions.create(
    model = "chatgpt-4o-latest",  # your model endpoint ID
    messages = [
        {"role": "system", "content": "你是人工智能助手"},
        {"role": "user", "content": "常见的十字花科植物有哪些？"},
    ],
)
print(completion.choices[0].message.content)